//
//  CNMineSystermMessageTopCell.m
//  BeeQuick_19
//
//  Created by clinging on 16/9/26.
//  Copyright © 2016年 CN Team. All rights reserved.
//

#import "CNMineSystermMessageTopCell.h"

#import "Masonry.h"

@implementation CNMineSystermMessageTopCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self setUpUI];
    }
    return self;
}

- (void)setUpUI{
    UILabel *titleLB = [[UILabel alloc]init];
    titleLB.text = @"title";
    [self.contentView addSubview:titleLB];
    [titleLB mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.contentView);
        make.left.equalTo(self.contentView).offset(10);
    }];
    _titleLB = titleLB;
    
    UIButton *showBtn = [[UIButton alloc]init];
    showBtn.titleLabel.text = @"显示全部";
    showBtn.titleLabel.font = [UIFont systemFontOfSize:12];
    [self.contentView addSubview:showBtn];
    [showBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.contentView);
        make.right.equalTo(self.contentView).offset(-10);
    }];
    _showBtn = showBtn;
    
}

//- (void)showBtnClick:(UIButton *)showBtn{
//    if ([_delegate respondsToSelector:@selector(showBtnClick:)]) {
//        [self showBtnClick:showBtn];
//    }
//}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
